import { createSlice } from '@reduxjs/toolkit'

const userSlice = createSlice({
  name: 'user',
  initialState: {
    subjectName: ""
  },
  reducers: {
    changeSubject(state, { payload }) {
      state.subjectName = payload;
    }
  }
})

export const { changeSubject } = userSlice.actions;
export default userSlice.reducer;